package com.webapp.module;

import org.jdom.Element;

public class MailSubscriber
{
  private String from;
  private String to;
  private String subject;
  private String content;
  private boolean attachfile;

  public MailSubscriber(Element root)
  {
    this.from = root.getChildText("from");
    this.to = root.getChildText("to");
    this.subject = root.getChildText("subject");
    this.content = root.getChildText("content");
    this.attachfile = Boolean.parseBoolean(root.getChildText("attachfile"));
  }

  public String getFrom() {
    return this.from; }

  public void setFrom(String from) {
    this.from = from; }

  public String getTo() {
    return this.to; }

  public void setTo(String to) {
    this.to = to; }

  public String getSubject() {
    return this.subject; }

  public void setSubject(String subject) {
    this.subject = subject; }

  public String getContent() {
    return this.content; }

  public void setContent(String content) {
    this.content = content;
  }

  public boolean isAttachfile() {
    return this.attachfile;
  }

  public void setAttachfile(boolean attachfile) {
    this.attachfile = attachfile;
  }
}